package cn.iocoder.yudao.module.reservation.controller.admin.employee.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 店员 Response VO")
@Data
@ExcelIgnoreUnannotated
public class EmployeeRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18181")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "店铺id", example = "20840")
    @ExcelProperty("店铺id")
    private Long storeId;

    @Schema(description = "店员编号")
    @ExcelProperty("店员编号")
    private String code;

    @Schema(description = "姓名", example = "李四")
    @ExcelProperty("姓名")
    private String name;

    @Schema(description = "性别")
    @ExcelProperty(value = "性别", converter = DictConvert.class)
    @DictFormat("system_user_sex") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer gender;

    @Schema(description = "出生日期")
    @ExcelProperty("出生日期")
    private LocalDateTime birthday;

    @Schema(description = "身份证号")
    @ExcelProperty("身份证号")
    private String idNumber;

    @Schema(description = "联系电话")
    @ExcelProperty("联系电话")
    private String phone;

    @Schema(description = "电子邮箱")
    @ExcelProperty("电子邮箱")
    private String email;

    @Schema(description = "职位")
    @ExcelProperty(value = "职位", converter = DictConvert.class)
    @DictFormat("mrs_employee_postition") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer position;

    @Schema(description = "入职时间")
    @ExcelProperty("入职时间")
    private LocalDateTime hireDate;

    @Schema(description = "离职时间")
    @ExcelProperty("离职时间")
    private LocalDateTime resignDate;

    @Schema(description = "上班状态（0在岗 1离休）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "上班状态（0在岗 1离休）", converter = DictConvert.class)
    @DictFormat("mrs_employee_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}